package day240520.p2;

public class GenericMethod {
    public <T> T m1(T t){
        return t;
    }

    public static void main(String[] args) {
        GenericMethod gm=new GenericMethod();
        Integer i=gm.<Integer>m1(89);
//        int i2=gm.<int>m1(89);//这里可以用int来接收
        String i3=gm.<String>m1("String");

    }
}
